package com.yang.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 映射数据库表，字段
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    //private String nickName;

    private Integer age;


    private String sex;

    //private String address;

    private Integer roleId;

    private String isValid;

    private String telephone;

    private String account;
//
//    private Date create_time;
//
//    private Date update_time;
}
